xpts = [1, 5, 4, 2, 10, 7]
ypts = [101, 78, 37, 15, 62, 99]

for x, y in zip(xpts, ypts):  # zip(a, b) 会生成一个可返回元组 (x, y) 的迭代器
    print(x, y)

a = [1, 2, 3]
b = ['w', 'x', 'y', 'z']
from itertools import zip_longest

for i in zip_longest(a, b): # 以长的为准,短的以None填充
    print(i)

for i in zip_longest(a, b,fillvalue = 0):  # 以长的为准,短的以0填充
    print(i)
